package com.example.dg.service.impl;

import com.example.dg.entity.Dd;
import com.example.dg.mapper.DdMapper;
import com.example.dg.service.DdServive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DdServiveImpl implements DdServive {
    @Autowired
    DdMapper ddMapper;

    @Override
    public List<Dd> DianDan() {
        return ddMapper.DianDan();
    }

    public int addDianDan(Dd dianDan) {
        return ddMapper.addDianDan(dianDan);
    }
}
